<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		请输入文本内容：<input type="text" name="" id="s1" value="" /><dr />
	<button type="button"onclick="fun()">传送</button>
	<script type="text/javascript">
		function fun(){
			document.getElementById("s2").value=document.getElementById("s1").value;
		}
	</script>
	</body>
</html>
